package com.hospital.entity;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class Permission {

    @NotEmpty(message = "employee_position不得为空")
    private String employee_position;

    @NotNull(message = "office_id不得为空")
    private int office_id;

    @NotEmpty(message = "delete_right不得为空")
    private int delete_right;

    @NotEmpty(message = "add_right不得为空")
    private int add_right;

    @NotEmpty(message = "edit_right不得为空")
    private int edit_right;

    @NotEmpty(message = "read_right不得为空")
    private int read_right;

}
